import request from "@/utils/request"

/**
 * 添加图片
 * @param banner
 * @returns {AxiosPromise}
 */
export const reqAddBanner = (banner) => request({url:"/banner/addBanner",method:"post",data:banner})

/**
 * 根据id删除图片
 * @param id
 * @returns {AxiosPromise}
 */
export const reqRemoveBannerById = (id) => request({url:`/banner/${id}`,method:"delete"})
/**
 * 获取轮播图列表
 * @returns {rows}
 */
export const reqGetBannerList = () => request({url:'/banner/list',method:"get"})